Optimal. Leaf size=66 \[ \frac{i b \text{PolyLog}\left (2,-e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d^2}+a x-\frac{2 b \sqrt{x} \log \left (1+e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d}+i b x \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.102825, antiderivative size = 66, normalized size of antiderivative = 1., number of steps used = 6, number of rules used = 5, integrand size = 14, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.357, Rules used = {3739, 3719, 2190, 2279, 2391} \[ a x+\frac{i b \text{Li}_2\left (-e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d^2}-\frac{2 b \sqrt{x} \log \left (1+e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d}+i b x \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3739
Rule 3719
Rule 2190
Rule 2279
Rule 2391
Rubi steps
\begin{align*} \int \left (a+b \tan \left (c+d \sqrt{x}\right )\right ) \, dx &=a x+b \int \tan \left (c+d \sqrt{x}\right ) \, dx\\ &=a x+(2 b) \operatorname{Subst}\left (\int x \tan (c+d x) \, dx,x,\sqrt{x}\right )\\ &=a x+i b x-(4 i b) \operatorname{Subst}\left (\int \frac{e^{2 i (c+d x)} x}{1+e^{2 i (c+d x)}} \, dx,x,\sqrt{x}\right )\\ &=a x+i b x-\frac{2 b \sqrt{x} \log \left (1+e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d}+\frac{(2 b) \operatorname{Subst}\left (\int \log \left (1+e^{2 i (c+d x)}\right ) \, dx,x,\sqrt{x}\right )}{d}\\ &=a x+i b x-\frac{2 b \sqrt{x} \log \left (1+e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d}-\frac{(i b) \operatorname{Subst}\left (\int \frac{\log (1+x)}{x} \, dx,x,e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d^2}\\ &=a x+i b x-\frac{2 b \sqrt{x} \log \left (1+e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d}+\frac{i b \text{Li}_2\left (-e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d^2}\\ \end{align*}
Mathematica [A] time = 0.023226, size = 66, normalized size = 1. \[ \frac{i b \text{PolyLog}\left (2,-e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d^2}+a x-\frac{2 b \sqrt{x} \log \left (1+e^{2 i \left (c+d \sqrt{x}\right )}\right )}{d}+i b x \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.166, size = 0, normalized size = 0. \begin{align*} \int a+b\tan \left ( c+d\sqrt{x} \right ) \, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} a x + 2 \, b \int \frac{\sin \left (2 \, d \sqrt{x} + 2 \, c\right )}{\cos \left (2 \, d \sqrt{x} + 2 \, c\right )^{2} + \sin \left (2 \, d \sqrt{x} + 2 \, c\right )^{2} + 2 \, \cos \left (2 \, d \sqrt{x} + 2 \, c\right ) + 1}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.70473, size = 439, normalized size = 6.65 \begin{align*} \frac{2 \, a d^{2} x - 2 \, b d \sqrt{x} \log \left (-\frac{2 \,{\left (i \, \tan \left (d \sqrt{x} + c\right ) - 1\right )}}{\tan \left (d \sqrt{x} + c\right )^{2} + 1}\right ) - 2 \, b d \sqrt{x} \log \left (-\frac{2 \,{\left (-i \, \tan \left (d \sqrt{x} + c\right ) - 1\right )}}{\tan \left (d \sqrt{x} + c\right )^{2} + 1}\right ) - i \, b{\rm Li}_2\left (\frac{2 \,{\left (i \, \tan \left (d \sqrt{x} + c\right ) - 1\right )}}{\tan \left (d \sqrt{x} + c\right )^{2} + 1} + 1\right ) + i \, b{\rm Li}_2\left (\frac{2 \,{\left (-i \, \tan \left (d \sqrt{x} + c\right ) - 1\right )}}{\tan \left (d \sqrt{x} + c\right )^{2} + 1} + 1\right )}{2 \, d^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan{\left (c + d \sqrt{x} \right )}\right )\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int b \tan \left (d \sqrt{x} + c\right ) + a\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]